package com.lgz.lgzapiclient;

import com.lgz.lgzapiclient.client.LgzApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("lgzapi.client")
@Data
@ComponentScan
public class lgzApiClientConfig {
    private String accessKey;

    private String secretKey;

    @Bean
    public LgzApiClient lgzApiClient() {
        return new LgzApiClient(accessKey, secretKey);
    }
}
